package org.aplombh.strategy.agencyMode.proxy.rent;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Proxy implements Rent{
    private Renter renter;

    @Override
    public void rent() {
        renter.rent();
        seeHouse();
        signContract();
        collectMoney();
    }

    public void seeHouse(){
        System.out.println("看房");
    }

    public void signContract(){
        System.out.println("签合同");
    }

    public void collectMoney(){
        System.out.println("收钱");
    }
}
